<template>
    <div class="errPage">
    <div style="margin-top: 100px">
      <Lottie
        width="400px"
        height="300px"
        src="https://assets9.lottiefiles.com/packages/lf20_suhe7qtm.json"
      />
      <div class="info">抱歉，您访问的页面不存在。</div>
      <div class="goback">
        <el-button @Click="goBack">返回上一页</el-button>
        <el-button type="primary" @Click="goHome"> 返回首页 </el-button>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from "vue-router";
import { Lottie } from "@/components/Lottie";
const router=useRouter();
//点击返回上一页
const goBack=()=>{
    router.go(-1);
}
//返回首页
const goHome=()=>{
    router.push('/');
}
</script>

<style lang="scss" scoped>
.errPage {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  .info {
    text-align: center;
    font-size: 16px;
    padding: 20px 0;
    color: #999;
  }
  .goback {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>